package com.splunk.hiring.imov.persist.db.impl;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate4.support.HibernateDaoSupport;

abstract public class AbstractDaoImpl extends HibernateDaoSupport{
	
	@Autowired
	public void setEurotourSessionFactory(SessionFactory sessionFactory) {
		super.setSessionFactory(sessionFactory);
	}
	
	public Session getCurrentSession() {
		return this.getSessionFactory().getCurrentSession();
	}
}
